<?php
/**
 * Created by PhpStorm.
 * User: ysk
 * Date: 2021/6/23
 * Time: 10:28
 */

namespace api\modules\v1\user\actions\UserDetail;
use api\base\BaseApiAction;
use common\models\user;


/**
 * @SWG\Post(
 *      tags={"user"},
 *      path="/user/detail",
 *      summary="detail",description="user-detail",

 *      @SWG\Response(
 *          response=200,
 *          description="OK",
 *          @SWG\Schema(
 *              @SWG\Property(
 *                  property="data",
 *                  @SWG\Property(property="accessToken",type="string",description="fsdf6sd6f46d4f6s4d6f4d64h324",),
 *              )
 *      )
 * )
 * )
 * @return \api\base\ResponseApi
 *
 */


class UserDetailAction extends BaseApiAction{

    public function run(){
        $info = User::find()->where(['id'=>1])->asArray()->one();

        return self::respondSuccess($info);
    }


}
